/*	talmud - The TALMUD roguelike
 * Copyright (C) 2012, talmud contributors
 *
 *  This program is free software; you can redistribute it and/or modify it
 *  under the terms of Version 2 of the GNU General Public License as published
 *  by the Free Software Foundation.
 *
 *  This program is distributed in the hope that it will be useful, but WITHOUT
 *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 *  FITNESS FOR A PARTICULAR PURPOSE. See Version 2 of the GNU General Public
 *  License for more details.
 *
 *  You should have received a copy of the GNU General Public License along
 *  with this program; if not, write to the Free Software Foundation, Inc.,
 *  59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 */

#ifndef draw_h
#define draw_h

#include <stdint.h>

#define A_NONE		0x00

#define A_BLACK		0x00
#define A_RED		0x01
#define A_GREEN		0x02
#define A_YELLOW	0x03
#define A_BLUE		0x04
#define A_MAGENTA	0x05
#define A_CYAN		0x06
#define A_WHITE		0x07

#define A_BGBLACK	0x00
#define A_BGRED		0x10
#define A_BGGREEN	0x20
#define A_BGYELLOW	0x30
#define A_BGBLUE	0x40
#define A_BGMAGENTA	0x50
#define A_BGCYAN	0x60
#define A_BGWHITE	0x70

#define A_COLORMASK	0x07
#define A_BGMASK	0x70
#define A_INTENSE	0x80

void Cls(void);
void Cll(uint8_t x, uint8_t y);
void InitDraw(void);
void SetColor(uint8_t c);
void DrawChar(uint8_t x, uint8_t y, uint8_t c);
uint8_t DrawStr(uint8_t x, uint8_t y, const char *format, ...);
uint8_t DrawCenteredStr(uint8_t x, uint8_t y, const char *format, ...);
void PutCursor(uint8_t x, uint8_t y);
void FlushDraw(void);

#endif
